package stark.app.function.camerakit;

import com.stark.camera.kit.CameraKitEntry;
import com.stark.camera.kit.filter.CameraActivity;

import stark.app.R;
import stark.app.databinding.ActivityCameraKitDemoBinding;
import stark.common.basic.base.BaseNoModelActivity;

//https://github.com/sdwfqin/AndroidQuick


public class CameraKitDemoActivity extends BaseNoModelActivity<ActivityCameraKitDemoBinding> {

    @Override
    protected int onCreate() {
        return R.layout.activity_camera_kit_demo;
    }

    @Override
    protected void initView() {
        mDataBinding.btnMirror.setOnClickListener(v -> {
            CameraKitEntry.enterMirror(this);
        });
        mDataBinding.btnMagnifier.setOnClickListener(v -> {
            CameraKitEntry.enterMagnifier(this);
        });
        mDataBinding.btnAngleCorrect.setOnClickListener(v -> {
            CameraKitEntry.enterPendant(this);
        });
        mDataBinding.btnRuler.setOnClickListener(v -> {
            CameraKitEntry.enterRuler(this);
        });
        mDataBinding.btnAngleMeasure.setOnClickListener(v -> {
            CameraKitEntry.enterAngleMeasure(this);
        });
        mDataBinding.btnMeasureHeight.setOnClickListener(v -> {
            CameraKitEntry.enterAltimeter(this);
        });
        mDataBinding.btnFilterCamera.setOnClickListener(v -> {
            CameraKitEntry.enterFilterCamera(this);
        });
        mDataBinding.btnFilterCameraWatermark.setOnClickListener(v -> {
            CameraActivity.startWithWatermark(this);
        });
        mDataBinding.btnDefCameraKit.setOnClickListener(v -> {
            CameraKitEntry.enterDefCameraKit(this);
        });
    }

    @Override
    protected void initData() {
    }

}